package com.heaven1949.tmall.order.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.heaven1949.tmall.common.datasource.entity.BaseEntity;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单信息实体类
 *
 * @author zhangjian
 * @date 2023-03-08 16:54:06
 */
@Data
@TableName("t_order")
public class OrderEntity extends BaseEntity implements Serializable {

    private static final long serialVersionUID = -79003936544356425L;
    /**
     * 订单号
     */
    private String orderNo;
    /**
     * 用户id
     */
    private String userId;
    /**
     * 商品id
     */
    private String productId;
    /**
     * 订单状态
     */
    private String orderStatus;
    /**
     * 收货地址id
     */
    private String addressId;
    /**
     * 总价
     */
    private BigDecimal totalPrice;

}